package top.yekongle.springcloud.service.impl;

import org.springframework.stereotype.Component;
import top.yekongle.springcloud.entity.CommonResult;
import top.yekongle.springcloud.entity.Payment;
import top.yekongle.springcloud.service.PaymentService;

/**
 * @author Hank Lau
 * @date 2021/6/14 14:48
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id)
    {
        return new CommonResult<>(44444,"服务降级返回,---PaymentFallbackService",new Payment(id,"errorSerial"));
    }
}

